import Vue from 'vue';
import App from './App';
import store from './utils/store';
import { titleChange } from './utils/xiaohui';
import Router from './router';
import { RouterMount } from '@/components/uni-simple-router/index.js';
import VConsole from 'vconsole';
import './plugins/element.js';
import moment from 'moment';
import uView from 'uview-ui';

const vConsole = new VConsole();

moment.locale('zh-cn'); //moment的中文化
Vue.use(uView);
//下载插件
Vue.config.productionTip = false;

Vue.prototype.$moment = moment;
Vue.prototype.$store = store;
Vue.prototype.$titleChange = titleChange;

App.mpType = 'app';

const app = new Vue({
	titleChange,
	store,
	...App
});

RouterMount(app, '#app');
